import Vue from 'vue'
import vueRouter from 'vue-router'
import routes from '../common/config/router.js'
Vue.use(vueRouter)
// 解决重复点击导航路由报错 这个错误不会影响运行
const originalPush = vueRouter.prototype.push;
vueRouter.prototype.push = function push(location) {
  
  return originalPush.call(this, location).catch(err => err);
}

export default new vueRouter({
  routes,
})
